package cm.iccsoft.android.telecomcost.entities;

public abstract class Entity extends Object {
	protected String name;
	private long _id = -1;
	protected String _type;
	
	private boolean selected;	
	
	public boolean isSelected()
	{
		return selected;
	}
	
	public void setSelected(boolean value)
	{
		selected = value;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setId(long _id) {
		this._id = _id;
	}

	public long getId() {
		return _id;
	}

	public void setType(String _type) {
		this._type = _type;
	}

	public String getType() {
		return _type;
	}	
	
	@Override
	public String toString() {
		return getName() + " ( " + getId() + " )";
	}
}
